package cn.rick.service.impl;

import cn.rick.entity.SysRole;
import cn.rick.mapper.SysRoleMapper;
import cn.rick.service.ISysRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 角色信息表 服务实现类
 * </p>
 *
 * @author house_store
 * @since 2022-10-19 14:39:46
 */
@Service
public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> implements ISysRoleService {

    @Override
    public List<Long> getRoleIdsByUserId(Long userId) {
        return baseMapper.getRoleIdsByUserId(userId);
    }

    @Override
    public List<SysRole> findRolesByUserId(Long userId) {
        return baseMapper.findRolesByUserId(userId);
    }
}
